package com.hxz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 
 * @author hxz
 * @description TODO
 * @data 2019年12月5日 上午9:17:50
 */
@MapperScan(basePackages = { "com.hxz.mapper", "com.hxz.admin.mapper" })
@ComponentScan(basePackages = { "com.hxz.controller", "com.hxz.service.impl", "com.hxz.config", "com.hxz.interceptor",
		"com.hxz.admin.service.impl", "com.hxz.admin.service", "com.hxz.admin.service.AdminCommentService",
		"com.hxz.admin.controller" })
@SpringBootApplication
@EnableSwagger2
@EnableCaching // 开启缓存
public class SpringBootBlogApplication {
	public static void main(String[] args) {
		SpringApplication.run(SpringBootBlogApplication.class, args);
	}
}
